import React from "react";
import ReactDOM from "react-dom/client";
import {HashRouter} from "react-router-dom";
import {Provider} from "react-redux";
import {ThemeProvider} from "styled-components";
import '@ant-design/v5-patch-for-react-19';
import "normalize.css";


import App from "@/App";
import "@/assets/css/index.less";
import store from "./store/index";
import theme from "./assets/theme";

const root = ReactDOM.createRoot(
    document.getElementById("root") as HTMLElement
);
root.render(
    <React.StrictMode>
        <Provider store={store}>
            <ThemeProvider theme={theme}>
                <HashRouter>
                    <App />
                </HashRouter>
            </ThemeProvider>
        </Provider>
    </React.StrictMode>
);
